package cn.cloud.butler.scheduled.repository;

import cn.cloud.butler.scheduled.domain.OperStateJson;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface OperStateJsonRepository extends JpaRepository<OperStateJson,Long> {


    @Query(value = "select * from OperStateJson t where t.macSN = ?1 and date(t.uploadTime) = ?2 limit 1",nativeQuery = true)
    OperStateJson findByMacSNUploadTime(String macSN, String uploadTime);


}
